Ext.define("App.project.view.ProjectBaseinfoEditorWindow", {
    extend: 'Extend.window.FormWindow',
    alias: 'widget.ProjectBaseinfoEditorWindow',
    entity: 'entity',
    requires: ['App.hrm.employee.field.EmployeeComboBox',
        'App.project.field.ProjectTypeComboBox',
        'App.project.field.IsBusinessProjectComboBox',
        'App.project.field.BillingTypeComboBox',
        'App.project.field.ImplementationStatusComboBox'],
    resetBySave: false,
    listeners: {},
    config: {
        window: {
            height: 550,
            width: 1000
        }
    },
    defaults: {
        labelWidth: 110,
        columnWidth: 0.5,
        readOnly: true
    },
    items: [{
        xtype: 'hidden',
        name: 'id'
    }, {
        xtype: 'hidden',
        name: 'projectOrder.id'
    }, {
        xtype: 'textfield',
        fieldLabel: '项目名称',
        name: 'name'
    }, {
        xtype: 'textfield',
        fieldLabel: 'PO号',
        name: 'projectOrder.po'
    }, {
        xtype: 'textfield',
        fieldLabel: 'PO名称',
        name: 'projectOrder.name'
    }, {
        xtype: 'textfield',
        fieldLabel: '内部Po号',
        name: 'innerPoNumber'
    }, {
        xtype: 'textfield',
        fieldLabel: '所在DU',
        name: 'du'
    }, {
        xtype: 'textfield',
        fieldLabel: '所在交付部',
        name: 'dd'
    }, {
        xtype: 'textfield',
        fieldLabel: '所在地域',
        name: 'area'
    }, {
        xtype: 'ProjectTypeComboBox',
        fieldLabel: '项目类型',
        name: 'projectType'
    }, {
        xtype: 'textfield',
        fieldLabel: '项目编码',
        name: 'projectCode'
    }, {
        xtype: 'numberfield',
        fieldLabel: 'PO占比(%)',
        name: 'poProportion'
    }, {
        xtype: 'IsBusinessProjectComboBox',
        fieldLabel: '是否为上网项目',
        name: 'business'
    }, {
        xtype: 'BillingTypeComboBox',
        fieldLabel: '计费类型',
        name: 'billingType'
    }, {
        xtype: 'numberfield',
        fieldLabel: '需求总人数',
        name: 'itemPlanMember'
    }, {
        xtype: 'textfield',
        fieldLabel: '华为QA',
        name: 'huaweiQa',
        readOnly: false
    }, {
        xtype: 'textfield',
        fieldLabel: '华为项目经理',
        name: 'huaweiProjectManager',
        readOnly: false
    }, {
        xtype: 'EmployeeComboBox',
        fieldLabel: '中软QA',
        name: 'chinasoftQa',
        readOnly: false,
        extraParams: {
            'params.role_eq': 'QA'
        }
    }, {
        xtype: 'textfield',
        fieldLabel: '项目经理',
        name: 'projectManager',
        readOnly: true,
        submitValue: false
    }, {
        xtype: 'textfield',
        fieldLabel: '项目经理工号',
        name: 'pmNo'
    }, {
        xtype: 'numberfield',
        fieldLabel: '预计工作量(人天)',
        name: 'projectWorkload'
    }, {
        xtype: 'datefield',
        fieldLabel: '项目开始时间',
        name: 'startDate',
        format: 'Y-m-d'
    }, {
        xtype: 'datefield',
        fieldLabel: '计划结项时间',
        name: 'plannedEndDate',
        format: 'Y-m-d'
    }, {
        xtype: 'textarea',
        fieldLabel: '描述',
        name: 'description',
        columnWidth: 1, height: 80
    }]
});
